home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
CU Amiga Super CD-ROM 2
/
CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso
/
graphics
/
dust
/
utilities
/
reducer.doc
< prev
next >
Wrap
Text File
|
1995-12-15
|
3KB
|
93 lines
#####################################################################
# #
# Reducer v0.1 (22 November 1995) - ©1995 by A.Maschke #
# #
#####################################################################
CONTENTS
1. Introduction
2. Usage
3. Author/Registration
4. History/TODO
1. Introduction
--------------------------------------------------------------------
One week ago I downloaded a starfield from Aminet which consists
of polygons with 6 edges. Because the object was in TDDD-format (triangles)
and I had to render a scene using Lightwave I wanted to merge the
polygons. So I tried out PixPro which needed a lot of time and
finally destroyed the object.
O.k., I said, write your own one.
The program reducer is the result (of some hours hacking C-language). It's
faster than PixPro and produces a starfield I can use.
Summary:
Advantages: -speed
-external small program which can be invoked
via batchfiles,...
-merges only polygons which remain to same surface
Disadvantages: -the fast (GCC-)version crashes after a stack-overflow
-It can't close polygons which use one edge two or
more times, e.g. the front-face of an "O"-letter
/-----\
| /---\ |
| | |-| <- edge used twice
| | | |
| \---/ |
\-----/
2. Usage
--------------------------------------------------------------------
Two executables are supplied
reducer (needs 68020)
reducer.FAST (needs 68030+, 68881, ixemul.library)
Usage: reducer <input-file> <output-file> [ZERO]
(ZERO defaults to 0.001, if the normals of two polygons differ
by a value less equal than zero the polygons are merged.)
Examples:
reducer obj obj.m
reducer obj obj.m 0.01
Notes: 1. In case of a complicaed face the program reports
a "merge-error"-this means that two polygons
where skipped (No problem having 10000 faces)
2. The procedure works recursively (stack)
If you want to reduce really huge objects set the stack
to 1MB and you will get no problems.
3. If you have a huge object then try to split it in smaller
sub-objects before merging (time)
3. Author/Registration
--------------------------------------------------------------------
The reducer-package belongs to the Dust-project, to get
registered for Dust, DustMD, Mesh2TDDD, makeHaze,... send
$25+postage to the author:
Andreas Maschke
Zenkerstraße 5
06108 Halle/Saale
Germany
Phone: ++49 (0)345/5170331
EMail: epgbc@cluster1.urz.Uni-Halle.DE
4. History/TODO
--------------------------------------------------------------------
History
v0.1 (22 November 1995) - seems to work
TODO
-more messages (no error-message is shown)
-more speed
-complicated polygons (like front-face of an "O"-letter)